package net.wangds.config;

import net.wangds.spring.utils.SpringUtils;
import net.wangds.i18n.utils.I18nUtils;
import net.wangds.log.helper.LogHelper;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

@Configuration
@DependsOn({"springUtils"})
public class CommonConfigConfig implements InitializingBean {

    @Override
    public void afterPropertiesSet() {
        I18nUtils.addMessagePropertiesFile("messages_mod_common_auth");
        LogHelper.info(SpringUtils.getMessage("messages_mod_common_auth_loaded"));
    }
}
